<template>
  <div class="dashboard-container">
    <el-card >
      <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
      <div style="padding: 14px;">
        <h1>{{ user.username }}，</h1>
        <div class="dashboard-text">欢迎来到工地后台管理系统！</div>
      </div>
    </el-card>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Home',
  computed: {
    ...mapGetters([
      'name',
      'user'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.image {
  width: 70%;
  min-width: 300px;
  height: 400px;
  display: block;
  margin: 30px auto;
}
</style>
